<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">


        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>



    </div>
</div>
{include file="public/footer" /}
<!--性别-->

<!--<script src="/static/admin/profitdata/index.js?v={$Think.const.TIMESTAMP}" charset="utf-8"></script>-->
<script>
    layui.use(['form', 'table', 'laydate', 'layarea', 'tableSelect'], function () {
        var $ = layui.jquery,
            table = layui.table;
        let create_time= $.getQueryVariable('create_time')

        /*列表*/
        table.render({
            elem: '#currentTableId',
            url: '/admin/ProfitData/DataDetail?action=ajax&create_time='+create_time,
            method: 'post',
            parseData: function (res) { //res 即为原始返回的数据
            console.log(res)
            return {
            'code': res.code, //解析接口状态
            'msg': res.msg, //解析提示文本
            'count': res.count, //解析数据长度
            'data': res.data, //解析数据列表
            };

            },
            // toolbar: '#toolbarDemo',
            cols: [[
                {field: 'title', title: '标题', sort: true,},
                {field: 'explain', title: '备注', sort: true,},
                {field: 'price', title: '金额', sort: true, minWidth: 120},
                {field: 'create_time', title: '时间',  },
                {field: 'cate_title', title: '支出类型',  },
            ]],
            limits: [10, 15, 20, 25, 30, 50, 100],
            limit: 10,
            page: true,
            skin: 'line,row',
            done: function (res, curr, count) {

            }
        });

    });

</script>
</body>
</html>